package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.TravelCommentPictureMapper;
import com.ktgj.customer.domain.TravelCommentPicture;
import com.ktgj.customer.service.ITravelCommentPictureService;

/**
 * 评论图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-13
 */
@Service
public class TravelCommentPictureServiceImpl implements ITravelCommentPictureService 
{
    @Autowired
    private TravelCommentPictureMapper travelCommentPictureMapper;

    /**
     * 查询评论图片
     * 
     * @param travelCommentPictureId 评论图片ID
     * @return 评论图片
     */
    @Override
    public TravelCommentPicture selectTravelCommentPictureById(Long travelCommentPictureId)
    {
        return travelCommentPictureMapper.selectTravelCommentPictureById(travelCommentPictureId);
    }

    /**
     * 查询评论图片列表
     * 
     * @param travelCommentPicture 评论图片
     * @return 评论图片
     */
    @Override
    public List<TravelCommentPicture> selectTravelCommentPictureList(TravelCommentPicture travelCommentPicture)
    {
        return travelCommentPictureMapper.selectTravelCommentPictureList(travelCommentPicture);
    }

    /**
     * 新增评论图片
     * 
     * @param travelCommentPicture 评论图片
     * @return 结果
     */
    @Override
    public int insertTravelCommentPicture(TravelCommentPicture travelCommentPicture)
    {
        return travelCommentPictureMapper.insertTravelCommentPicture(travelCommentPicture);
    }

    /**
     * 修改评论图片
     * 
     * @param travelCommentPicture 评论图片
     * @return 结果
     */
    @Override
    public int updateTravelCommentPicture(TravelCommentPicture travelCommentPicture)
    {
        return travelCommentPictureMapper.updateTravelCommentPicture(travelCommentPicture);
    }

    /**
     * 批量删除评论图片
     * 
     * @param travelCommentPictureIds 需要删除的评论图片ID
     * @return 结果
     */
    @Override
    public int deleteTravelCommentPictureByIds(Long[] travelCommentPictureIds)
    {
        return travelCommentPictureMapper.deleteTravelCommentPictureByIds(travelCommentPictureIds);
    }

    /**
     * 删除评论图片信息
     * 
     * @param travelCommentPictureId 评论图片ID
     * @return 结果
     */
    @Override
    public int deleteTravelCommentPictureById(Long travelCommentPictureId)
    {
        return travelCommentPictureMapper.deleteTravelCommentPictureById(travelCommentPictureId);
    }
}
